package cn.com.hhrcw.admin.cms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 内容
 * @Author: lixingxing
 * @Date: 2020-11-06
 * @Version: V1.0
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "cms_content响应结果", description = "内容")
public class CmsContentVO implements Serializable {


    /**
     * id
     */
    @ApiModelProperty(value = "id")
    private String id;


    /**
     * 栏目id
     */
    @ApiModelProperty(value = "栏目id")
    @Excel(name = "栏目id")
    @Dict(dictTable="cms_channel",dicCode="id",dicText="name")
    private String channelId;


    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    @Excel(name = "标题")
    private String title;


    /**
     * 副标题
     */
    @ApiModelProperty(value = "副标题")
    @Excel(name = "副标题")
    private String secondTitle;


    /**
     * 缩略图
     */
    @ApiModelProperty(value = "缩略图")
    @Excel(name = "缩略图")
    @Dict(dictTable = "file", dicCode = "id", dicText = "url")
    private String thumb;


    /**
     * 内容
     */
    @ApiModelProperty(value = "内容")
    @Excel(name = "内容")
    private String content;


    /**
     * 作者
     */
    @ApiModelProperty(value = "作者")
    @Excel(name = "作者")
    private String author;


    /**
     * 来源
     */
    @ApiModelProperty(value = "来源")
    @Excel(name = "来源")
    private String comeFrom;


    /**
     * 来源URL
     */
    @ApiModelProperty(value = "来源URL")
    @Excel(name = "来源URL")
    private String comeFromUrl;


    /**
     * 组图（暂未使用）
     */
    @ApiModelProperty(value = "组图（暂未使用）")
    @Excel(name = "组图（暂未使用）")
    private String pic;


    /**
     * 附件（暂未使用）
     */
    @ApiModelProperty(value = "附件（暂未使用）")
    @Excel(name = "附件（暂未使用）")
    @Dict(dictTable = "file", dicCode = "id", dicTexts = {"url","fileRealName"})
    private String attachment;


    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    @Excel(name = "排序")
    private Integer sortOrder;


    /**
     *
     */
    private String seoTitle;


    /**
     *
     */
    private String seoKeyword;


    /**
     *
     */
    private String seoDesc;


    /**
     * 状态（1启用，0不启用）
     */
    @ApiModelProperty(value = "状态（1启用，0不启用）")
    @Excel(name = "状态（1启用，0不启用）")
    private Integer status;


    /**
     * 0-草稿 ，1-发布（发布时间早于系统时间C端菜显示）2-撤回
     */
    @ApiModelProperty(value = " 0-草稿 ，1-发布（发布时间早于系统时间C端菜显示）2-撤回")
    @Excel(name = "  0-草稿 ，1-发布（发布时间早于系统时间C端菜显示）2-撤回")
    @Dict(replace = {"0_草稿", "1_发布", "2_撤回"})
    private Integer publishStatus;


    /**
     * 发布时间
     */
    @ApiModelProperty(value = "发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "发布时间", format = "yyyy-MM-dd HH:mm:ss")
    private Date publishTime;


    /**
     * 职位浏览量
     */
    @ApiModelProperty(value = "职位浏览量")
    @Excel(name = "职位浏览量")
    private Integer browseCount;


    /**
     * 评论量
     */
    @ApiModelProperty(value = "评论量")
    @Excel(name = "评论量")
    private Integer commentCount;


    /**
     * 置顶标记 1-置顶 0- 不置顶
     */
    @ApiModelProperty(value = "置顶标记 1-置顶 0- 不置顶")
    @Excel(name = "置顶标记", dicCode = "boolean")
    @Dict(replace = {"true_是", "false_否"})
    private Boolean topFlag;


    /**
     * 删除标记
     */
    @ApiModelProperty(value = "删除标记")
    private Boolean delFlag;


    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "", format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Excel(name = "", format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    /**
     *
     */
    private String updateBy;


    /**
     *
     */
    private String createBy;


    /**
     *
     */
    private String r1;


    /**
     *
     */
    private String r2;


    /**
     *
     */
    private String r3;


    /**
     *
     */
    private String r4;


    /**
     *
     */
    private String r5;


    /**
     *
     */
    private String r6;


    /**
     *
     */
    private String r7;

}
